﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace MarginTrading.Entity
{
    public class Client
    {
        #region public methods
        /// <summary>
        /// default constructor of Bank. 
        /// </summary>
        public Client()
        {
            this.Code = string.Empty;
            this.BankAccNo = string.Empty;
            this.Category = string.Empty;
            this.Title = string.Empty;
            this.Initials = string.Empty;
            this.OtherNames = string.Empty;
            this.Surname = string.Empty;
            this.Address_1 = string.Empty;
            this.Address_2 = string.Empty;
            this.Address_3 = string.Empty;
            this.Address_4 = string.Empty;
            this.Advisor = string.Empty;
            this.RegDate = DateTime.MinValue;
            this.Agent = string.Empty;
            this.Telephone1 = string.Empty;
            this.Telephone2 = string.Empty;
            this.Fax = string.Empty;
            this.MarginLimit = 0;
            this.MarginClient = 0;
            this.Broker = string.Empty;
            this.MTRegDate = DateTime.MinValue;
            this.InterestRate = 0;
        }

        #endregion


        #region property

        public string Code { get; set; }
        public string BankAccNo { get; set; }
        public string Category { get; set; }
        public string Title { get; set; }
        public string Initials { get; set; }
        public string OtherNames { get; set; }
        public string Surname { get; set; }
        public string Address_1 { get; set; }
        public string Address_2 { get; set; }
        public string Address_3 { get; set; }
        public string Address_4 { get; set; }
        public string Advisor { get; set; }
        public DateTime RegDate { get; set; }
        public string Agent { get; set; }
        public string Telephone1 { get; set; }
        public string Telephone2 { get; set; }
        public string Fax { get; set; }
        public double MarginLimit { get; set; }
        public int MarginClient { get; set; }
        public string Broker { get; set; }
        public DateTime MTRegDate { get; set; }
        public double InterestRate { get; set; }

        #endregion
    }

    public class ClientCollection : Collection<Client>
    {
        public ClientCollection()
        {
        }
    }
}
 